package com.supervision.manage;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by whis on 2019-06-16
 * @author whis
 */
@SpringBootApplication
@Configuration
@PropertySource("classpath:application.properties")
@ComponentScan(basePackages = {"com.fly.base", "com.supervision.manage"})
@MapperScan(basePackages = {"com.supervision.manage.mapper", "com.fly.base.mybatis.mapper"})
@EnableScheduling
@EnableSwagger2
public class ManageBootApplication {

    public static void main(String[] args) {
        SpringApplication.run(ManageBootApplication.class, args);
        System.out.println("===== Boot Application init =====");
    }
}
